package com.aidex.biz.rong360;

import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args){
        // 是否联调环境, 上线时替换
        boolean isTest = false;
        // 融360分配的appid, 上线时替换
        String appId = "5000669";
        // 融360分配的密钥, 注意不能删除回车和空格, 上线时替换
        String privateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANJLMZrAyEBQyaur/SYia3qoT8Rpl0F9fM+IoT6LDeVDGDwIJV44Z8uWkqPmA2zKM/5FzarnO3KKngwJu6yYvCcyYOb1cHkbEej6QoT9LtkdpxnokiIR2bGfEpelRPZ563FmEX4fmmM/Xyfpbs2nd1+20hz77MJe95BFAEsQPkYpAgMBAAECgYEAkjBRqInx67v9pkjmr7bnzpno8dqRmqZYuJD7vtW98C2nUDw9dfVyOnZPNH72zI74fAAcjH04t1SjsCyn+cEnsjiCyyBNQOAfjO7jUxkEcgDRy6P19LexodKTaO3dNooV/33+klOIM2N2NQDKNXFRPGSkTDo3OS7WtM0MK/MnYx0CQQD5emyM9c5q+ABCU1mJ2Z9FGEBDUwDdy6TGYsOd7rHDcJwa2nXr3aXFA9T53Dd8NfyEa4iMu+MyW1x8puBVaVIDAkEA18qJVmaClRUNyP97ZZ/6ABhUbfZxaBMNy33tixwB5+KrsKxAATI8V4x7lZZcf1Aq1R62Yclu8aICQeJ6SviFYwJAKFjTS2zJiGU5bYCbX37xkjQc2IaJAlXX/Tml11nuJ+SDaphgL9g14gn/nLUvyAfXIfdeKxyL3u4FpCc86rNQzwJAGjq2Ithm+vQKLupO93VQj/5lFNClzD60qI1v+D65RJRaxijJxttyVjnvM6mJKLh33FvVU2GGqLxGhfefYcl/fQJBAJnWyrlGwNXO3jGgMrJ486K9pwBg/Z4gXjN8TLefgjizwctdqFm2qaJDe5run7iZpM6ePpK/68IiGjV2H41pcUg=";
        //融360分配的总账号ID, 联调时替换
        String uid = "838627";


        Rong360Service service = new Rong360Service(appId, privateKey, isTest);

        // 获取订单接口
        Map<String, String> params = new HashMap<>();
        params.put("uid", uid);
        params.put("begin_time", "2023-06-01 00:00:00");
        params.put("end_time", "2023-07-01 00:00:00");
        System.out.println(service.getorderlist(params));

    }
}
